export default {
	// Global page headers: https://go.nuxtjs.dev/config-head
	head: {
		titleTemplate: "%s - 青猿回收",
		htmlAttrs: {
			lang: 'en'
		},
		meta: [
			{
				charset: 'utf-8'
			},
			{
				name: 'viewport',
				content: 'width=device-width, initial-scale=1'
			},
			{
				hid: 'description',
				name: 'description',
				content: ''
			},
			{
				hid: 'keywords',
				name: 'keywords',
				content: ''
			},
			{
				name: 'format-detection',
				content: 'telephone=no'
			}
		],
		link: [{
			rel: 'icon',
			type: 'image/x-icon',
			href: '/favicon.ico'
		}],
		script: [
			{
				src: '/tinymce/tinymce.min.js' //加载本地静态目录下的tinymce库
			},
			// {
			// 	src: 'https://webapi.amap.com/maps?v=1.4.15&key=817cd2f4443e4b89c393cb3ec7c789ea&plugin=AMap.DistrictSearch,AMap.Geocoder,AMap.PlaceSearch,AMap.AutoComplete'
			// },
			// {
			// 	src: '/signalr.js'
			// },
			{
				src: '/signalr/dist/browser/signalr.min.js'
			},
		]
	},

	// Global CSS: https://go.nuxtjs.dev/config-css
	css: [
		'element-ui/lib/theme-chalk/index.css',
		'@/static/common.scss',
		// '@/static/theme.scss',
		'@/static/font/iconfont.css'
	],

	// target: 'static', //静态打包

	// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
	plugins: [
		{
			src: '@/plugins/common'
		},
		{
			src: '@/plugins/element-ui'
		},
		{
			src: '@/plugins/axios'
		},
		{
			src: '@/plugins/router'
		},
		{
			src: '@/plugins/cropper',
			ssr: false //必须加否则报错 https://github.com/xyxiao001/vue-cropper
		},
		{
			src: '@/plugins/AMapLoader', //高度地图API
			ssr: false //必须加否则报错
		},
		{
			src: '@/plugins/debounce', //防抖方法
		},
		{
			src: '@/plugins/throttle', //节流方法
		},
		{
			src: '@/plugins/jszip',
			ssr: false //必须加否则报错 https://github.com/xyxiao001/vue-cropper
		}
	],

	// Auto import components: https://go.nuxtjs.dev/config-components
	components: true,

	// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
	buildModules: [],

	// Modules: https://go.nuxtjs.dev/config-modules
	modules: [
		'@nuxtjs/axios',
		'cookie-universal-nuxt'
	],

	// Build Configuration: https://go.nuxtjs.dev/config-build
	build: {
		extend(config, { isDev, isClient }) {
			if (isDev && isClient) {
				config.devtool = 'eval-source-map';
			}
		},
		transpile: [/^element-ui/],
	},

	server: {
		port: 9300, // default: 3000
		// host: '192.168.1.200' // default: localhost
	},

	loading: {
		color: '#02d5d6',
		height: '2px'
	}
}
